
console.log('🎄 common remove ads file loaded!');
// const urlList = ['/api/ad/union/sdk/get_ads', '/union/endcard/']
// 检查当前请求的URL
var currentURL = $request.url; 

console.log('current url: ' + currentURL);

if ( currentURL.indexOf("/api/ad/union/sdk/get_ads/") >= 0){
	console.log("match url...")
	var myResp = {
		status: 200,
		// headers: $request.headers,
		body: JSON.stringify({"request_id":"AE5E0E6E-0943-49BA-A09E-74E2CA737068","status_code":20001,"reason":112,"desc":"该代码位请求量过大且消耗过低，因此填充率控制在10%以内，该策略每日生效，如果当天该代码位的消耗上涨或请求量小于5000，则次日不会命中该策略"})
	}
	$done(myResp)
}else {
	console.log("don't match url...")
	$done()
}



























